package crudfx.navigation;
import javax.swing.*;
import java.awt.*;
import javax.swing.tree.*;
/**
 * @profile desktop
 * @author Sergey Surikov
 */
public abstract class TreeItem {
    public var stateKey:String=null;
    public var tooltip:String="TreeItem";
    public var popup:PopUp=null;
    package var onSelect:function():Boolean;
    //public var isEditOnSelect:Boolean=false;
    public abstract function getCellComponent(tree:JTree,value:Object
                                    ,selected:Boolean,expanded:Boolean
                                    ,leaf:Boolean,row:Integer,hasFocus:Boolean
                                    ):Component;
    public abstract function add(tree:Tree,parent:DefaultMutableTreeNode):Void;
    //public abstract function showPopup(x:Integer,y:Integer):Void;
}
